<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/15/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/15/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/15/ButtonSection.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemplateLibraryConnectorConfig.aspx.cs" Inherits="TemplateLibraryConnector.TemplateLibraryConnectorConfig" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Template Library Connector settings
</asp:Content>

<asp:Content ID="Content4" contentplaceholderid="PlaceHolderPageDescription" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    <a id="onetidListHlink" href="<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(List.DefaultViewUrl,true),Response.Output);%>">
        <%SPHttpUtility.HtmlEncode(List.Title, Response.Output);%></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow
            ID="ClusteredDirectionalSeparatorArrow1" runat="server" />
    <a href="<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(GetLibrarySettingsUrl(), true),Response.Output);%>">
        Document Library Settings
    </a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow2"
        runat="server" />
    <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="Template Library Connector Settings"
        EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="Content13" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div>
        <asp:TextBox runat="server" ID="TextError" Visible="false" BorderColor="Red" ForeColor="Red"
            Width="100%">
        </asp:TextBox>
    </div>
    <table border="0" width="100%" cellspacing="0" cellpadding="0" class="ms-descriptiontext">
        <wssuc:InputFormSection runat="server" Title="Source">
    <template_description>
		Settings related to the source template library
	</template_description>
            <template_inputformcontrols>
			<wssuc:InputFormControl runat="server" LabelText="Pick a document library to serve templates to the current library.">
				<Template_Control>
					<table class="ms-authoringcontrols" width="100%">
						<tr>
							<td nowrap="nowrap" width="100%">
								<asp:TreeView runat="server" ID="TreeSourceDocLib" ShowCheckBoxes="Leaf" style="height: 250px; overflow:auto; overflow-x:hidden;" BackColor="White" BorderStyle="Inset" BorderWidth="2">
									<NodeStyle Font-Size="10pt" />
								</asp:TreeView>
							</td>
						</tr>
					</table>
				</Template_Control>
			</wssuc:InputFormControl>
			
            </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:ButtonSection runat="server" ShowStandardCancelButton="true">
            <template_buttons>
		        <asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="BtnSave_Click" Text="<%$Resources:wss,multipages_savebutton_text%>" id="BtnSave"/>
	        </template_buttons>
        </wssuc:ButtonSection>
    </table>
    <asp:Label runat="server" ID="TestLabel"></asp:Label>
</asp:Content>
